<template>
  <div id="SsoTemp"></div>
</template>

<script>
import { requestPost } from '../../../utils/request'
import API_KEY from '../../../api'
import REQUEST_KEY from '../../../config/request'
import message from '../../../utils/message'

export default {
  name: 'SsoTemp',
  data () {
    return {
      formData: {
        appId: '850fe1caa8554c87aad5703aa45c7604',
        appSecret: 'l4OhV0BKm9M=',
        state: '',
        tempAuthCode: ''
      }
    }
  },
  created () {
    this.formData.state = this.$route.query.state
    this.formData.tempAuthCode = this.$route.query.code
    requestPost(API_KEY.dcSso.getSsoUserByConfigTempAuthCode, this.formData, REQUEST_KEY.requestMode.json).then((res) => {
      console.log(res.data)
      message.message.success(res.message)
    })
  }
}
</script>

<style scoped>

</style>
